import unittest

from common.log_config import init_logging
from htmltestreport import HTMLTestReport
from config import path_cnf

if __name__ == '__main__':
    init_logging()

    suite = unittest.defaultTestLoader.discover(path_cnf.BASE_DIR + '/scripts')
    HTMLTestReport(path_cnf.BASE_DIR + '/report/ego_report.html', title='Ego商城测试报告').run(suite)
